package com.qf.dao;

import com.qf.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmplyeeMapper {
    Emplyee login(@Param("ename")String ename,@Param("epassword")String epassword);

    List<Emplyee>  getAllEmplyee();

    Emplyee findByEname(String ename);

    List<Permission> getPermissionByUserName(String ename);

    Role getByEnameRole(String ename);

    Integer getByEnameEmplyee(String ename);

    void updateRole(@Param("eid")Integer eid,@Param("rid")Integer rid);

    int deleteEmplyee(String ename);

    void updEmplyee(Emplyee emplyee);

    Emplyee findByEmail(String eemail);

    String getEnameByTel(String etel);
}
